#-------------------------------------------------
#
# Project created by QtCreator 2018-08-28T14:48:57
#
#-------------------------------------------------

QT       += core gui widgets

greaterThan(QT_MAJOR_VERSION, 5)

TARGET = FishTracker
TEMPLATE = app
config += console
config += debug_and_release

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ComboBoxItemDelegate.cxx \
    Project.cxx \
    ProjectIO.cxx \
    Sequence.cxx \
    TrackedObject.cxx \
    YOLOTrackingThread.cxx \
    TreeModel.cxx \
        main.cpp \
    FrameWidget.cxx \
    VideoThread.cxx \
    VideoController.cxx \
    VideoView.cxx \
    FramePool.cxx \
    MainWindow.cxx

HEADERS += \
    ComboBoxItemDelegate.hxx \
    Project.hxx \
    ProjectIO.hxx \
    Sequence.hxx \
    TrackedObject.hxx \
    YOLOTrackingThread.hxx \
    TreeModel.hxx \
    FrameWidget.hxx \
    VideoThread.hxx \
    VideoController.hxx \
    VideoView.hxx \
    FramePool.hxx \
    MainWindow.hxx

win32 {
    INCLUDEPATH += D:/Apps/include/opencv3
    INCLUDEPATH += D:/Apps/include
    INCLUDEPATH += D:/Apps/include/expat

    LIBS += -LD:/Apps/lib

    CONFIG(debug, debug|release) {
        LIBS +=-lopencv_core3411d
        LIBS +=-lopencv_highgui3411d
        LIBS +=-lopencv_imgcodecs3411d
        LIBS +=-lopencv_imgproc3411d
        LIBS +=-lopencv_videoio3411d
        LIBS +=-lopencv_tracking3411d
        LIBS +=-ldarknetd
        LIBS +=-llibexpatd
    }

    CONFIG(release, debug|release) {
        LIBS +=-lopencv_core3411
        LIBS +=-lopencv_highgui3411
        LIBS +=-lopencv_imgcodecs3411
        LIBS +=-lopencv_imgproc3411
        LIBS +=-lopencv_videoio3411
        LIBS +=-lopencv_tracking3411
        LIBS +=-ldarknet
        LIBS +=-llibexpat
    }

    LIBS +=-llegacy_stdio_definitions
}

unix {
    #DEFINES += "_GLIBCXX_USE_CXX11_ABI=0"

    INCLUDEPATH += /usr/local/include/opencv4

    LIBS +=-lopencv_core
    LIBS +=-lopencv_highgui
    LIBS +=-lopencv_imgcodecs
    LIBS +=-lopencv_videoio
    LIBS +=-lopencv_tracking
    LIBS +=-lopencv_alphamat
    LIBS +=-lopencv_imgproc
    LIBS +=-ldarknet
    LIBS +=-lexpat
    LIBS +=-lstdc++
}


LIBS +=-lavcodec
LIBS +=-lavformat
LIBS +=-lavdevice
LIBS +=-lavfilter
LIBS +=-lavutil
LIBS +=-lpostproc
LIBS +=-lswresample
LIBS +=-lswscale


FORMS +=

RESOURCES += \
    FishTracker.qrc

win32:debug {
    CONFIG += console
}
